package com.springboot.dubbo.dubboprovider;

import com.gupaoedu.dubbo.ISayHelloService;
import org.apache.dubbo.config.annotation.Service;

/**
 * @Author: JLL
 * @Date: 2019/8/1 0:02
 */
@Service(loadbalance = "random",
        timeout = 50000,  //5万就是50秒
        cluster = "failsafe")
public class SayHelloServiceImpl implements ISayHelloService {

    @Override
    public String sayHello(){
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "hello dubbo ";
    }
}
